package com.tao.china.biz.jdbc.dao;

import java.sql.SQLException;
import java.util.List;



/**
 * @author liuchao
 */
public interface CatsDao {
    
    
    
    /**
     * 得到所有类目
     * @return
     * @throws SQLException
     */
    public List<Cats> getCats() throws SQLException;
    
    public class Cats {
        Long    id;
        Long    cid;
        String  cName;
        Long    pcid;
        String  pcName;
        public Long getId() {
            return this.id;
        }
        public void setId(Long id) {
            this.id = id;
        }
        public Long getCid() {
            return this.cid;
        }
        public void setCid(Long cid) {
            this.cid = cid;
        }
        public String getcName() {
            return this.cName;
        }
        public void setcName(String cName) {
            this.cName = cName;
        }
        public Long getPcid() {
            return this.pcid;
        }
        public void setPcid(Long pcid) {
            this.pcid = pcid;
        }
        public String getPcName() {
            return this.pcName;
        }
        public void setPcName(String pcName) {
            this.pcName = pcName;
        }
    }
    
   

}
